# Copyright (c) 2019 Presto Labs Pte. Ltd.
# Author: leon

from coin.exchange.korbit_v1.kr_rest.constants import (base_currency_list, quote_currency_list)
from coin.exchange.korbit_v1.kr_rest.product import KorbitProduct

# All symbols must be in group a because orderbook does not support subscribing
# but gives all.
group_symbol = {
    'a': [
        "btc_krw",
        "eth_krw",
        "xrp_krw",
        "bch_krw",
    ],
}

# Basic check
for group, symbols in group_symbol.items():
  for symbol in symbols:
    product = KorbitProduct.FromStrNativeProduct(symbol)
    assert product.base.native_currency.upper() in base_currency_list, symbol
    assert product.quote.native_currency.upper() in quote_currency_list, symbol
